package mahi.inheritance;

public class Child  extends Parent{
	
	String training;
	
	public void printChild()
	{
		System.out.println(name);
	}
	
	public static void main(String[] args) {
		Child child = new Child();
		System.out.println(child.name);
		
		child.printChild(1);
	}
	
	@Override
	public void test()
	{
		System.out.println("Child test");
	}
	
	
	public void printChild(int childId)
	{
		System.out.println(name);
	}
	
	//Polymorphism
//	1. compile time (method oveloading) or static binding
//	2. run time (dymanic binding) or method overriding 
	
	
	
}
